@import "modules/reset.scss";
@import "modules/headerRepeat.scss";
@import "modules/navRepeat.scss";
@import "modules/footerRepeat.scss";

body{
    background-color: #e9e9e9;
}

// 详情页主要内容区
.container{
    width: 1220px;
    margin: 0 auto;
    padding-top: 21px;

    // 商品信息区
    .message{
        height: 598px;
        box-sizing: border-box;
        border: 1px solid #d4d4d4;
        border-radius: 7px;
        margin-bottom: 20px;
        // overflow: hidden;
        background-color: #fff;
        padding: 60px;
        display: flex;
        .left{
            width: 540px;
            .smallImgBox{
                float: left;
                width: 80px;
                display: flex;
                flex-direction: column;
                justify-content: start;
                align-items: center;
                padding-top: 26px;
                .smallImgList{
                    width: 80px;
                    height: 80px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    box-sizing: border-box;
                    border: 1px solid #ececec;
                    border-radius: 5px;
                    margin-bottom: 10px;
                    cursor: pointer;
                    &.active{
                        border: 3px solid #c1c1c1;
                    }
                    img{
                        display: block;
                        width: 54px;
                        height: 54px;
                    }
                }
            }
            .bigImgBox{
                width: 400px;
                height: 400px;
                float: left;
                margin-left: 20px;
                img{
                    display: block;
                    width: 400px;
                    height: 400px;
                }
            }
        }
        .right{
            flex: 1;
            .titleBox{
                height: 98px;
                box-sizing: border-box;
                border-bottom: 1px solid #e6e6e6;
                .titleBoxLeft{
                    float: left;
                    h2{
                        font-size: 22px;
                        // height: 22px;
                        line-height: 22px;
                        color: #000;
                        font-weight: bold;
                        width: 450px;
                    }
                    h3{
                        font-size: 13px;
                        // height: 13px;
                        line-height: 13px;
                        color: #878787;
                        margin-top: 25px;
                        width: 450px;
                    }
                }
                .priceBox{
                    float: right;
                    margin-right: 10px;
                    margin-top: 45px;
                    p{
                        font-size: 12px;
                        font-weight: bold;
                        color: #c73734;
                        span{
                            font-size: 24px;
                            height: 24px;
                            line-height: 24px;
                            margin-left: 5px;
                        }
                    }
                }
            }
            .activitiesBox{
                box-sizing: border-box;
                border-bottom: 1px solid #e6e6e6;
                padding: 30px 0;
                display: flex;
                h5{
                    font-size: 13px;
                    height: 13px;
                    line-height: 13px;
                    color: #535353;
                    margin-right: 30px;
                }
                .activitiesMsg{
                    flex: 1;
                }
            }
            .typeCountBox{
                box-sizing: border-box;
                border-bottom: 1px solid #e6e6e6;
                .typeBox{
                    padding-top: 30px;
                    overflow: hidden;
                    display: flex;
                    h5{
                        font-size: 13px;
                        height: 13px;
                        line-height: 13px;
                        color: #535353;
                        margin-right: 30px;
                    }
                    .typeMsg{
                        flex: 1;
                        box-sizing: border-box;
                        border-bottom: 1px dashed #e6e6e6;
                        padding-bottom: 30px;
                    }
                }
                .countBox{
                    padding: 30px 0;
                    display: flex;
                    h5{
                        font-size: 13px;
                        height: 13px;
                        line-height: 13px;
                        color: #535353;
                        margin-right: 30px;
                    }
                    .countMsg{
                        flex: 1;
                        display: flex;
                        height: 40px;
                        justify-content: start;
                        align-items: center;
                        .downBtn{
                            display: block;
                            width: 36px;
                            height: 36px;
                            background: url("/images/item/updown-select-icon.ce7e0ffb6ed63599a7537ee7ca06827c.png") no-repeat -4px -60px;
                            cursor: pointer;
                        }
                        .count{
                            display: block;
                            width: 56px;
                            height: 14px;
                            font-size: 14px;
                            line-height: 14px;
                            color: #353535;
                            font-weight: bold;
                            text-align: center;
                        }
                        .upBtn{
                            display: block;
                            width: 36px;
                            height: 36px;
                            background: url("/images/item/updown-select-icon.ce7e0ffb6ed63599a7537ee7ca06827c.png") no-repeat -4px 0px;
                            cursor: pointer;
                        }
                    }
                }
            }
            .serviceBox{
                box-sizing: border-box;
                border-bottom: 1px solid #e6e6e6;
                padding: 30px 0;
                display: flex;
                h5{
                    font-size: 13px;
                    height: 13px;
                    line-height: 13px;
                    color: #535353;
                    margin-right: 30px;
                }
                .serviceMsg{
                    flex: 1;
                }
            }
        }
    }

    // 详情区
    .details{
        box-sizing: border-box;
        border: 1px solid #d4d4d4;
        border-radius: 7px;
        margin-bottom: 20px;
        overflow: hidden;
        background-color: #fff;
        .details-header{
            height: 62px;
            box-sizing: border-box;
            border-bottom: 1px solid #cacaca;
            background-color: #f7f7f7;
            overflow: hidden;
            .details-title{
                font-size: 18px;
                height: 18px;
                line-height: 18px;
                font-weight: bold;
                margin-top: 22px;
                margin-left: 25px;
            }
        }
        .details-content{
            width: 100%;
            img{
                display: block;
                width: 100%;
                height: auto;

            }
        }
    }

    // 推荐区
    .commend{
        box-sizing: border-box;
        border: 1px solid #d4d4d4;
        border-radius: 7px;
        margin-bottom: 20px;
        overflow: hidden;
        .commend-header{
            height: 62px;
            box-sizing: border-box;
            border-bottom: 1px solid #cacaca;
            background-color: #f7f7f7;
            overflow: hidden;
            .commend-title{
                font-size: 18px;
                height: 18px;
                line-height: 18px;
                font-weight: bold;
                margin-top: 22px;
                margin-left: 25px;
            }
        }
        .commend-content{
            display: flex;
            flex-wrap: wrap;
            .commend-list{
                width: 25%;
                height: 430px;
                background-color: #fff;
                box-sizing: border-box;
                border-right: 1px solid #dfdfdf;
                border-bottom: 1px solid #dfdfdf;
                position: relative;
                .commend-list-imgBox{
                    width: 216px;
                    height: 283px;
                    box-sizing: border-box;
                    padding-top: 45px;
                    margin: 0 auto;
                    img{
                        display: block;
                        width: 100%;
                        height: 100%;
                    }
                }
                .commend-list-msgBox{
                    height: 95px;
                    padding: 0 20px;
                    h4{
                        font-size: 13px;
                        height: 13px;
                        line-height: 13px;
                        color: #262626;
                        font-weight: bold;
                        text-align: center;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                    h5{
                        font-size: 12px;
                        height: 12px;
                        line-height: 12px;
                        color: #878787;
                        text-align: center;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        margin-top: 19px;
                    }
                }
                .commend-list-priceBox{
                    p{
                        text-align: center;
                        font-size: 18px;
                        height: 18px;
                        line-height: 18px;
                        color: #000;
                        font-weight: bold;
                    }
                }
                .commend-list-cover{
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    &:hover{
                        box-shadow: 0 0 50px 1px #ccc inset;
                    }
                }
            }
        }
    }
}





// 详情页购买bar
.buyBar{
    width: 100%;
    height: 60px;
    background-color: #f9f9f9;
    border-top: 1px solid #dcdcdc;
    position: sticky;
    bottom: 0;
    z-index: 11;
    .content{
        width: 1220px;
        margin: 0 auto;
        overflow: hidden;
        .left{
            float: left;
            height: 60px;
            overflow: hidden;
            h6{
                float: left;
                margin-top: 15px;
                font-size: 12px;
                height: 12px;
                line-height: 12px;
                color: #5d5d5d;
            }
            .msgBox{
                float: left;
                margin-left: 22px;
                h5{
                    margin-top: 15px;
                    font-size: 14px;
                    height: 14px;
                    line-height: 14px;
                    font-weight: bold;
                    color: #5d5d5d;
                }
                p{
                    margin-top: 8px;
                    font-size: 12px;
                    height: 12px;
                    line-height: 12px;
                    color: #8b8b8b;
                }

            }
        }
        .right{
            float: right;
            height: 60px;
            display: flex;
            justify-content: start;
            align-items: center;
            .priceBox{
                span{
                    display: block;
                    font-size: 18px;
                    height: 60px;
                    line-height: 60px;
                    font-weight: bold;
                    color: #c73734;
                }
            }
            .buttonBox{
                display: flex;
                justify-content: start;
                align-items: center;
                p{
                    width: 120px;
                    height: 42px;
                    box-sizing: border-box;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    border-radius: 6px;
                    font-size: 14px;
                    font-weight: bold;
                    cursor: pointer;
                    &:nth-of-type(1){
                        border: 1px solid #f9f9f9;
                        background-color: #d6d6d6;
                        margin-left: 28px;
                        color: #515151;
                        &:hover{
                            background-color: #ddd;
                            color: #4c4c4c;
                        }
                    }
                    &:nth-of-type(2){
                        background-color: #435ead;
                        margin-left: 10px;
                        color: #fff;
                    }
                }
            }
        }
        .congratulation{
            width: 112px;
            height: 38px;
            box-sizing: border-box;
            background-color: #f5e3a6;
            border: 1px solid #d3ad55;
            font-size: 14px;
            line-height: 38px;
            text-align: center;
            color: #5e461a;
            position: fixed;
            bottom: 88px;
            left: calc(50% - 56px);
            border-radius: 8px;
            display: none;
        }
    }
}

// 回到顶部盒子
.toTopBox{
    width: 82px;
    height: 162px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    display: block;
    position: fixed;
    top: calc(50% - 81px);
    right: 20px;
    &>div{
        width: 100%;
        height: 50%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        i{
            display: block;
            width: 36px;
            height: 36px;
        }
        p{
            font-size: 13px;
            height: 13px;
            line-height: 13px;
            color: #6c6c6c;
            text-align: center;
            margin-top: 10px;
        }
    }
    .toService{
        i{
            background: url("/images/item/icon-cus-service@2x.bcaf6deda3ace302acd6f8cfa8cbb1ae.png") no-repeat;
            background-size: 100% 100%;
        }
    }
    .toTop{
        border-top: 1px solid #e6e6e6;
        i{
            background: url("/images/item/icon-backtop@2x.09b1d3c5be6fe8ff132de51901780d9b.png") no-repeat;
            background-size: 100% 100%;
        }
    }
}